package cn.edu.scau.cmi.linzhanyi.abstractFactory;

import cn.edu.scau.cmi.linzhanyi.abstractFactory.domainAbstractClass.Insurance;

public abstract class AbstractFactory {
    public static AbstractFactory getFactory(String type){
        switch (type){
            case "中国人寿保险(PICC)":return new PICCFactory();
            case "平安保险(PingAn)" :return new PingAnFactory();

        }
        return null;
    }
    public abstract Insurance createBodyInsurance();
    public abstract Insurance createCarInsurance();
    public abstract Insurance createPeopleInsurance();
    public abstract Insurance createMultipleAccidents();
}
